-
Notifications
You must be signed in to change notification settings - Fork 71
Upgrade to Angular 7.0, Fabric 6.110.0; Fix build errors #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…stener is not generic)
… moved to global styles in Fabric
| interface EventListener<K extends keyof ElementEventMap> { | ||
| type: K; | ||
| listener: (ev: ElementEventMap[K]) => void; | ||
| interface EventListener { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this update be all right? I tested it locally and didn't notice anything broken.
This was to fix the issue I was seeing since EventListener is a default type that is not generic:
All declarations of 'EventListener' must have identical type parameters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about just changing the name of the interface?
I missed the fact that it was already taken (looking back, should really have checked it + assume such a generic name would be taken).
even changing to something like IEventListener would solve this. If you have suggestions for a better name - I'm open for suggestions (thought of EventListenerOptions, but it's taken - see line 4 here).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think IEventListener is fitting. I've updated the name and added the generic typing back. Are there any references to IEventListener in other places in the code that I should also be updating?
…ngCard components
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comments, looking good overall - just the fabric upgrade requires attention, and a few other minor things I left comments on that would be nice to have, but not critical.
… *.ts due to build issues
No description provided.